<form autocomplete="off" class="layui-form layui-box modal-form-box" action="{:request()->url()}" data-auto="true" method="post">


    <div class="layui-form-item">
        <label class="layui-form-label">
            自动投票
        </label>

        <div class='layui-input-block'>
            <label class="think-radio">
                <input type="radio" name="is_auto_ticket" value="1" title="开启" {if isset($vo.is_auto_ticket) && $vo.is_auto_ticket==1}checked=""{/if} lay-ignore> 开启
            </label>

            <label class="think-radio">
                <input type="radio" name="is_auto_ticket" value="0" title="关闭" {if isset($vo.is_auto_ticket) && $vo.is_auto_ticket==0}checked=""{/if} lay-ignore> 关闭
            </label>
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">自动票数</label>
        <div class="layui-input-block">
            <input type="number" name="ticket_num" value="{$vo.ticket_num|default=''}" required="required" title="请输入要自动投票最大数" placeholder="请输入要自动投票最大数" class="layui-input">

        </div>
    </div>



    <div class="hr-line-dashed"></div>

    <div class="layui-form-item text-center">
        {if isset($vo['id'])}<input type='hidden' value='{$vo.id}' name='id'>{/if}
        <button class="layui-btn" type='submit' data-confirm="确定要提交吗？">提交</button>
        <button class="layui-btn layui-btn-danger" type='button' data-close>取消</button>
    </div>

    <script>window.form.render();</script>
</form>
